package com.ticket.service;

import com.ticket.pojo.PageBean;
import com.ticket.pojo.User;

import java.util.List;

public interface UserService {
    List<User> selectAll();

    void add(User user) ;

    void update(User user);
    void deleteById(int id);

    void deleteByIds(int[] ids);

    PageBean<User> selectByPage(int currentPage, int pageSize);

    PageBean<User> selectByPageAndCondition(int currentPage,int pageSize,User user);
}
